﻿#include "CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged::CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged::~CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged()
    {
    }

    bool CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphSidebarCurveNameCheckStateChanged(m_mainWindowId, m_index, m_checkStatus);
        return true;
    }

    void CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged::undo()
    {
    }

    void CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphSidebarCurveNameCheckStateChanged::setPolarCoordinateGraphSidebarCurveNameCheckStateChanged(int mainWindowId, int index, int checkStatus)
    {
        m_mainWindowId = mainWindowId;
        m_index = index;
        m_checkStatus = checkStatus;
    }

} // namespace PostCommand
